require 'test/unit'
require 'lib/client.rb'

class TestDataListener < Test::Unit::TestCase
  def setup()
  end
  
  def teardown()
  end
  
  def test_receive_data()
    flunk('not done yet')
  end
  
end

class TestDataReporter < Test::Unit::TestCase
  def setup()
  end 
  
  def teardown()
  end
  
  def test_return_results()
    flunk('not done yet')
  end
  
end

class TestTask < Test::Unit::TestCase
  def test_add_task()
    DistributedWorker::Client::Task.create(DistributedWorker::Client::Task::Test)
    assert_equal(1, DistributedWorker::Client::Task.processes.length)
  end
  
  def test_stop_tasks()
    assert(DistributedWorker::Client::Task.processes.length > 0)
    DistributedWorker::Client::Task.teardown()
    assert(DistributedWorker::Client::Task.processes.length == 0)
  end
end
